package com.spic.business.plan.analysis.vo;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Calendar;

/**
 * @author 290512
 * @create 2021-10-31 10:27
 */
public class CategoryChartVo implements Serializable
{
    private int categorYears[];
    private int categorValue[];

    public int[] getCategorYears()
    {
        return categorYears;
    }
    public void setCategorYears()
    {
        Calendar cal = Calendar.getInstance();
        int year = cal.get(Calendar.YEAR);
        int years[] = new int[3];
        for (int i = 0 ;i < 3; i++)
        {
            years[i] = year-i;
        }
        this.categorYears = years;
        Arrays.sort(this.categorYears);
    }

    public int[] getCategorValue()
    {
        return categorValue;
    }

    public void setCategorValue(int[] categorValue)
    {
        this.categorValue = categorValue;
    }


}
